﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Engine.Components
{
    public class BaseManager :DrawableGameComponent, IEngineComponent
    {
        private NOWAEngine _game;
        public ComponentManager MANAGER;
        private string _name;
        private int _id;
        private bool _notDel = false;
        public BaseManager(NOWAEngine _game,ComponentManager manager,bool nodel=false):base(_game)
        {
            // TODO: Complete member initialization
            this.MANAGER = manager;
            this._notDel = nodel;
            this._game = _game;
            this._name = this.GetType().Name;
        }

        public void Extend()
        {
            _notDel = false;
        }
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }
        public int ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }
        public bool NotDel
        {
            get { return _notDel; }
        }
        
    }
}
